package com.leyou.user.api;

import com.leyou.user.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @创建者 Toyn
 * @创建时间 2018/9/21 21:27
 */

public interface UserApi {
//    @GetMapping("query")
//    User QueryUserByUserNameByPassWord(@RequestParam("username") String username, @RequestParam("password")String password);

    /**
     * 根据用户名和密码查询用户
     * @param username
     * @param password
     * @return
     */
    @GetMapping("query")
    User queryUser(@RequestParam("username") String username, @RequestParam("password") String password);
//    @GetMapping("detail/{uid}")
//    UserDetail queryUserDetail(@PathVariable("uid") Long uid);
}
